import request from '@/utils/request'

export function getList(data){
    return request({
        url: '/video/product/list',
        method: 'post',
        data
    })
}

export function addProduct(data){
    return request({
        url: '/video/product/add',
        method: 'post',
        data
    })
}

export function editProduct(id,data){
    return request({
        url: `/video/product/update/${id}`,
        method: 'post',
        data
    })
}

export function deleteProduct(id){
    return request({
        url: `/video/product/delete/${id}`,
        method: 'post'
    })
}